<div class="WindowList">
<form method="post" class="checkoutform " novalidate action="{:U('update', array('id' => $info['id']))}">
      <div class="form-group">
          <label class="pull-left">名称</label>
          <input value="{$info['title']}" name="title" placeholder="项目名称" class="form-control" type="text"/>
      </div>
      <div class="form-group text-input">
          <label class="pull-left">选择表格</label>
          <assign name="temp['id']" value="$info['id']" />
          <html:listselect class="btn btn-sm btn-success pull-right" name="form" selected="info['form_id']" multiple="1" url="{:U('Taskform/select',$temp)}" title="选择表格" />
      </div>
      <hr/>
      <div class="form-group">
      	<label>审批</label>
        <?php $empty="<div class='form-box'>暂无数据</div>" ?>
        
      	<volist name="missionList" id="vo" empty="$empty">
    		<div class='form-box'>
            	<span>{$vo['title']}</span>
            	<a class='button pull-right' href='javascript:void(0);' onclick='mission_{$vo['state']==-1?'send':'cancel'}({$vo['id']}, this);'>{$vo['state']==-1?'递交':'取消'}</a>
            </div>
        </volist>
      </div>
      
      <hr/>
     
      <div class="form-group">
        <label>执行时间</label>
        <div class="col-lg-12" style="margin:15px 0;color:black">
            <input class="form-control" id="starttime" name="starttime" readonly onclick="WdatePicker();" style="cursor:pointer;display: inline;width:150px" value="{:date('Y/m/d',$info['starttime'])}" placeholder="起始时间" type="text" class="col-lg-2 col-sm-2" > -
            <input class="form-control" id="realtime" name="endtime" onclick="WdatePicker();" readonly style="cursor:pointer;display:inline;width:150px" value="{:date('Y/m/d',$info['realtime'])}" placeholder="结束时间" type="text" class="col-lg-2 col-sm-2">
        </div>
      </div>
      
      <div class="form-group"> 
          <label>备注</label>
          <textarea class="form-control" rows="10" placeholder="请输入任务内容" name="remark">{$info['remark']}</textarea>
      </div>
</form>
<style>
	.label-rule{margin-right: 20px;margin-bottom: 10px;padding: 10px;}
	a.hidden{ display:block !important; visibility:visible !important;}
	a.plusSign{float: left;width: 50px;height: 50px;line-height: 35px;font-size: 30px; font-weight:bold; margin-left:10px;}
	.memberDataBox,.reviewerDataBox,.followerDataBox{ float:left; display:inline-block;}
	.SelectDataListItem .icon-check-circle{color:#1BAB2B; display:none; font-size:16px !important; margin-right:20px}
	.SelectDataListItem .icon-circle-o{color:#1BAB2B; display:inline-block; color:#eee; font-size:16px !important; margin-right:20px;}
	.SelectDataListItem.selected .icon-check-circle{display:inline-block !important; visibility:visible !important;}
	.SelectDataListItem.selected .icon-circle-o{display:none !important; visibility:hidden !important;}
	.auii_statei_focusfollower .aui_content{padding:5px !important;}
	.SelectDataListItem{background-color:#fff; line-height:40px; padding-left:20px; color:#666;}
	.form-box{overflow: hidden;width: 100%;padding: 10px;border: #ddd solid 1px;background: white;margin: 10px 0;}
	.selected{}
</style>
<script>
function mission_send(id,e){
	if(!confirm('确定递交吗？')){
		return false;
	}
	hideLayer();
	$.post('{:U('Mission/send')}', {id:id}, function(data){
		if(data.status == 1){
			updateWindowList();
		}else{
			alert(data.info);
		}
	}, 'json');
}

function mission_cancel(id,e){
	if(!confirm('确定取消吗？')){
		return false;
	}
	hideLayer();
	$.post('{:U('Mission/cancel')}', {id:id}, function(data){
		if(data.status == 1){
			updateWindowList();
		}else{
			alert(data.info);
		}
	}, 'json');
}
</script>
</div>